import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import '@/uni.promisify.adaptor'
import store from '@/store/index.js'
Vue.config.productionTip = false
Vue.prototype.$store = store
App.mpType = 'app'
const app = new Vue({
  ...App,
  store
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
import store from '@/store'
import Vuex from 'vuex'
import uView from '@/uni_modules/vk-uview-ui';
export function createApp() {
  const app = createSSRApp(App)
  app.use(store)
  app.use(uView)
  return {
    app,
	Vuex
  }
}
// #endif